//
//  HWOpenServiceInfoImageCell.swift
//  HWPromoteProjectAPP
//
//  Created by 王昌健 on 2022/1/29.
//  Copyright © 2022 王昌健. All rights reserved.
//

import UIKit

class HWOpenServiceInfoImageCell: UICollectionViewCell {
    var imageView:UIImageView!
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        initUI()
        
        initFrame()
        
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}

extension HWOpenServiceInfoImageCell {
    private func initUI() -> Void {
        
        imageView = UIImageView()
        imageView.backgroundColor = .clear
        imageView.layer.cornerRadius = 12*widthScale
        imageView.layer.masksToBounds = true
        contentView.addSubview(imageView)
    }
    
    private func initFrame() -> Void {
        imageView.snp.makeConstraints { make in
            make.edges.equalToSuperview()
        }
    }
}
